package cn.hinglo.gameclaw.data.dbdao;

import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;
import tk.mybatis.mapper.common.MySqlMapper;

/**
 * 继承自己的MyMapper
 *
 * @author HingLo
 * @since 2015-09-06 21:53
 */
public interface MyMapper<T> extends Mapper<T>, MySqlMapper<T> {
    //FIXME 特别注意，该接口不能被扫描到，否则会出错

    /**
     * 通过用户Id 来检测该账号是否存在，结果返回当前的账号Id
     *
     * @param userId 用户的Id
     * @return 返回用户Id
     */
    @Select("select id from user where id=#{id} and status = true")
    String findByIdUserIdDao(String userId);

}
